Skip to content

Conversation

marek-safar
Copy link
Contributor

No description provided.

@marek-safar
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vitek-karas
Copy link
Member

The Windows tests are broken by dotnet/cecil@191f9fc
When we rewrite a method's body to a throw we remove all debug scope information and all sequence points. When the assembly is written out the new behavior will force-read symbols from the original PDB for the method, but those symbols don't match the method body anymore.
The failure is because the native PDB writer validates this and fails. (I guess managed PDB writer doesn't care a produces broken PDB).

@vitek-karas
Copy link
Member

Actually this is a known issue now: jbevain/cecil#694

@marek-safar
Copy link
Contributor Author

@vitek-karas I reverted that change and still the same problem :-(

@vitek-karas
Copy link
Member

That's because linker master still uses package reference to Mono.Cecil - so the fixes you picked up into the submodule don't apply. We will either have to wait for the fix to make it into cecil's master and eventually package, or switch fully to rely on the submodule.

@marek-safar
Copy link
Contributor Author

@vitek-karas yeah, I completely forgot about that

marek-safar and others added 2 commits October 9, 2020 12:54
* Build against Cecil submodule

* Depend on official cecil version

With this change, the nuspec of the ref assembly package will
list cecil verision 0.11.2 as a dependency (instead of 5.0.0-rc*).
This allows consumers of the ref package to use the publicly
released cecil.
@vitek-karas
Copy link
Member

There's a formatting bug in the master - I just added a fix into this PR as it was faster...
Yesterday I saw build errors when building with the submodule on Windows - but apparently something in this PR fixes that - no build errors for me anymore (apart from the formatting fix which shows up as an error).

@vitek-karas
Copy link
Member

/cc @sbomer for when he gets back to take a quick look.

@vitek-karas vitek-karas merged commit 41078a0 into dotnet:master Oct 9, 2020
sbomer added a commit to sbomer/linker that referenced this pull request Jul 27, 2021
The submodule update in dotnet#2156
incremented the cecil version, but we were still using 0.11.3 as the version
in our package graph. See dotnet#1515 for more
context on how this is set up.

Fixes dotnet#2173
sbomer added a commit that referenced this pull request Jul 28, 2021
* Bump cecil package version

The submodule update in #2156
incremented the cecil version, but we were still using 0.11.3 as the version
in our package graph. See #1515 for more
context on how this is set up.

Fixes #2173

* Remove unnecessary cast
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
With this change, the nuspec of the ref assembly package will
list cecil verision 0.11.2 as a dependency (instead of 5.0.0-rc*).
This allows consumers of the ref package to use the publicly
released cecil.

Co-authored-by: Sven Boemer <[email protected]>
Co-authored-by: vitek-karas <[email protected]>

Commit migrated from dotnet/linker@41078a0
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
* Bump cecil package version

The submodule update in dotnet/linker#2156
incremented the cecil version, but we were still using 0.11.3 as the version
in our package graph. See dotnet/linker#1515 for more
context on how this is set up.

Fixes dotnet/linker#2173

* Remove unnecessary cast

Commit migrated from dotnet/linker@0cb9250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants